﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FisheryPlatform.SiteConfig;

namespace FisheryPlatform.Web.Admin.Modules
{
    public partial class HtmlEditor : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ImageUrlPath = SiteConfigManager.WebSite.Css + SiteConfigManager.AppSettings["HtmlEditorImgUrl"].Value;
        }

        /// <summary>
        /// 编辑器Html
        /// </summary>
        public string Html
        {
            get { return txt_Html.Value; }
            set { txt_Html.Value = value; }
        }

        /// <summary>
        /// 编辑器文本
        /// </summary>
        public string Text
        {
            get { return txt_Text.Value; }
            set { txt_Text.Value = value; }
        }

        public string ImageUrlPath
        {
            set;
            get;
        }
    }
}